//
// Created by 123 on 2025/1/9.
//
#include "map"
#include "iostream"
using namespace std;


void test(){
    map<int,int> m1;
    m1.insert(pair<int,int>(1,10));
    m1.insert(pair<int,int>(2,20));
    m1.insert(pair<int,int>(3,30));

   map<int,int>::iterator pos =  m1.find(3);
   if(pos != m1.end()){
       cout << "got it " << "key=" << pos->first << " value=" << (*pos).second << endl;
   }else{
       cout << "fuck" << endl;
   }

   int num = m1.count(3);
   cout << "num=" << num << endl;

}

int main142(){
    test();
    return 0;
}